﻿@model Movie
@using Resources
@{
    ViewBag.Title = @Model.movieTitle;
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title</h1>
            </hgroup>
        </div>
    </section>
}

<aside class="movieposter">
    <img src="@Url.Content(Model.movieImage)" alt="movie poster" runat="server"/>
</aside>

<article class="moviedetails">
    <header>
        <table>
            <tr>
                <td>@MVResources.premiere: @Model.movieReleaseDate.ToString("dd/MM/yyyy")</td>
                <td>@MVResources.speelduur: @Model.movieLength</td>
            </tr>
            <tr>
                <td>genre: @Model.movieGenre.genreName</td>
                <td>@MVResources.regisseur: @Model.movieDirector</td>
            </tr>
        </table>
        <h1>@MVResources.inhoud</h1>
    </header>
    @Model.movieSummary
</article>

<article class="moviedetails" id="movieReviewList">
    <header>
        <h1>Reviews</h1>
    </header>
    @Html.Partial("_Reviews", Model.movieReviews)

</article>

<aside class="moviedetails">
    <header>
        <h1>@MVResources.programmatie</h1>
    </header>
    @Html.Partial("_Programmatie", Model.movieShowtimes.OrderBy(r => r.showtimeTime).Take(3))
    @Html.ActionLink("Bekijk de volledige programmatie", "Programmatie", "Home", new { movieId = Model.movieId }, null)
</aside>
